export default {
    data() {
        return {
            data: {
                element: ''
            },
            ruleValidate: {
                sku: [{required: true, message: 'SKU必须填写！'}],
                barcode: [{required: true, message: '默认条码必须填写！'}],
                name: [{required: true, message: '产品名称必须填写！'}],
                net_weight: [{required: true, message: '产品名称必须填写！'}],
                weight: [{required: true, message: '产品名称必须填写！'}],
                brand: [{required: true, message: '品牌必须填写！'}],
                hs_code: [{required: true, message: '商品编码必须填写！'}],
                country: [{required: true, message: '原产国必须填写！'}],
                unit: [{required: true, message: '申报单位必须填写！'}],
                currency: [{required: true, message: '申报币种必须填写！'}],
                model: [{max: 255, message: '型号最大255个字符！'}],
                specs: [{max: 255, message: '规格最大255个字符！'}],
                function: [{max: 255, message: '功能最大255个字符！'}],
                use: [{max: 255, message: '用途最大255个字符！'}],
                element: [{required: true, max: 255, message: '申报要素必须填写'}],
            },
            hsCodeItem: {},
            elementModal: false
        }
    },
    methods: {
        hsCodeChange(e) {
            this.hsCodeItem = e;
        }
    }
}
